package com.example.practice;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class SqliteUsers extends SQLiteOpenHelper {

    public SqliteUsers(Context context) {
        super(context, "info", null, 2);
    }

    @Override
    public void onCreate(SQLiteDatabase sqLiteDatabase) {
    sqLiteDatabase.execSQL("create table info(info_user varchar(20) primary key,info_password varchar(20),info_phone varchar(20));");
    sqLiteDatabase.execSQL("create table charge(charge_user varchar(20),charge_amount varchar(20),charge_carno varchar(20),charge_data varchar(20));");
    sqLiteDatabase.execSQL("create table weather(weather1 varchar(20),weather2 varchar(20),weather3 varchar(20),weather4 varchar(20),weather5 varchar(20),weather6 varchar(20),weather7 varchar(20));");
    }

    @Override
    public void onUpgrade(SQLiteDatabase sqLiteDatabase, int i, int i1) {
    }
}
